<?php
/**
 * Created by PhpStorm.
 * @description:
 * @time:
 * @Author: yfl
 * @QQ 554665488
 * Date: 2018-5-26
 * Time: 17:57
 */
//udp客户端
$upd_client = new swoole_client(SWOOLE_SOCK_UDP, SWOOLE_SOCK_SYNC);
//不计后果，不保证数据发送成功
$upd_client->sendto('127.0.0.1', 9501, 'udp数据');
$response = $upd_client->recv();
var_dump($response);

